﻿using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace FormulaDerivation
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }
        public void FormulaDerivation()
        {
            List<string> logics = new List<string>();
            logics.Add("Point(ins),Point(a1),slope,0.02");
            logics.Add("Point(ins),Point(a1),X,-lw");
            logics.Add("Point(a1),Point(a2),Y,-lct1");
            logics.Add("Point(a1),Point(a2),X,0");
            logics.Add("Line(a1,a10),a3,Y,-lct3");
            logics.Add("Point(a4),Point(a3),X,-lcl2");
            logics.Add("Line(a1,a10),a4,Y,-lct2");
            logics.Add("Point(a1),Point(a4),X,lcl1");
            logics.Add("Point(a1),Point(a5),X,lcl");
            logics.Add("Line(a1,a10),a5,Y,-h");
            logics.Add("Point(a5),Point(a6),slope,0.02");
            logics.Add("Point(a6),Point(a10),X,rcl");
            logics.Add("Point(ins),Point(a10),slope,0.02");
            logics.Add("Point(ins),Point(a10),X,rw");
            logics.Add("Point(a10),Point(a9),Y,-rct1");
            logics.Add("Point(a10),Point(a9),X,0");
            logics.Add("Point(a7),Point(a8),X,rcl2");
            logics.Add("Line(a10,a1),Point(a8),Y,rct3");
            logics.Add("Line(a10,a1),Point(a7),Y,rct2");
            logics.Add("Point(a10),Point(a7),X,-rcl1");
            //logics.Add("xxx,yyy_,X,icount*aaa");//可能会出现C#中的所有语法
            //logics.Add("b8_0,b0_i,X,i*(cw + mww) - cw");//方式1,使用于箱室间距于箱室宽度不变的情况
            logics.Add("Point(b8_i-1),Point(b0_i),X,mww[i - 1],1~boxCount");//方式2
            logics.Add("Point(b1_i),Point(b0_i),X,lwh[i],0~boxCount");

        }
    }
}